import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: "/Admin"
        },
        {
            path: "/Login",
            component: () => import("../views/Login.vue")
        },
        {
            path: "/Admin",
            component: () => import("../views/ADmin/Index.vue"),
            children: [
                {
                    path: "List",
                    component: () => import("../views/ADmin/Banner/List.vue")
                },
                {
                    path: "Add",
                    component: () => import("../views/ADmin/Banner/Add.vue")
                },
                {
                    path: "/AdminList",
                    component: () => import("../views/ADmin/Admin/List.vue")
                },
                {
                    path: "/AdminAdd",
                    component: () => import("../views/ADmin/Admin/Add.vue")
                },
                {
                    path: "/Querylist",
                    component: () => import("../views/ADmin/goods/Querylist.vue")
                },
                {
                    path:"/ListWithPage",
                    component:()=>import("../views/Admin/goods/ListWithPage.vue")
                }


            ]

        }
    ]
})